package com.zbl.zblproject.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/29
 */
@TableName("zbl_erp_owegoodsitem")
public class ErpOweGoodsItem {

    @TableId(type = IdType.AUTO)
    private int id;

    /**
     * 订单ID
     */
    private String orderSn;

    /**
     * 供应商ID/工厂ID
     */
    private int supplierId;

    /**
     * 门店ID/用户ID
     */
    private int userId;

    /**
     * 商品ID
     */
    private int goodsId;

    /**
     * 采购申请商品项ID
     */
    private int itemId;


    /**
     * 模式
     * 0:欠货 1:缺货
     */
    private int mode;

    /**
     * 单价
     */
    private BigDecimal singlePrice;

    /**
     * 数量
     */
    private int number;

    /**
     * 欠货时间
     */
    private LocalDateTime oweTime;

    /**
     * 订单商品
     */
    @TableField(exist = false)
    private ErpGoods goods;


    private int erpOrderId;

    private int erpOrderItemId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }


    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }


    public ErpGoods getGoods() {
        return goods;
    }

    public void setGoods(ErpGoods goods) {
        this.goods = goods;
    }


    public BigDecimal getSinglePrice() {
        return singlePrice;
    }

    public void setSinglePrice(BigDecimal singlePrice) {
        this.singlePrice = singlePrice;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public LocalDateTime getOweTime() {
        return oweTime;
    }

    public void setOweTime(LocalDateTime oweTime) {
        this.oweTime = oweTime;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getErpOrderId() {
        return erpOrderId;
    }

    public void setErpOrderId(int erpOrderId) {
        this.erpOrderId = erpOrderId;
    }

    public int getErpOrderItemId() {
        return erpOrderItemId;
    }

    public void setErpOrderItemId(int erpOrderItemId) {
        this.erpOrderItemId = erpOrderItemId;
    }
}
